package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 公司表 实体类
 *
 * @author Uchihashiamu
 */
@Data
@TableName("nova_tenant_company")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "TenantCompany对象")
public class TenantCompanyEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 层级
	 */
    @Schema(description = "层级")
    @TableField("level")
	private Integer level;
	/**
	 * 父id
	 */
    @Schema(description = "父id")
    @TableField("parent_id")
	private Long parentId;
	/**
	 * 名称
	 */
    @Schema(description = "名称")
    @TableField("name")
	private String name;

}
